It is now unused.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>
if (contentOverride && contentOverride.secrets.length) {
// Only show the dialog if we actually have something to ask
this._shellDialog = new NetworkSecretDialog(this._agent, this._requestId, this._connection, 'vpn', [], this._flags, contentOverride);
- this._shellDialog.open(global.get_current_time());
+ this._shellDialog.open();
} else {
this._agent.respond(this._requestId, Shell.NetworkAgentResponse.CONFIRMED);
this.destroy();
delete this._dialogs[requestId];
});
this._dialogs[requestId] = dialog;
- dialog.open(global.get_current_time());
+ dialog.open();
}
_cancelRequest(agent, requestId) {
_ensureOpen() {
// NOTE: ModalDialog.open() is safe to call if the dialog is
// already open - it just returns true without side-effects
- if (!this.open(global.get_current_time())) {
+ if (!this.open()) {
// This can fail if e.g. unable to get input grab
//
// In an ideal world this wouldn't happen (because the
}
async OpenAsync(parameters, invocation) {
- let [type, timestamp, totalSecondsToStayOpen, inhibitorObjectPaths] = parameters;
+ let [type, timestamp_, totalSecondsToStayOpen, inhibitorObjectPaths] = parameters;
this._totalSecondsToStayOpen = totalSecondsToStayOpen;
this._type = type;
this._updateButtons();
- if (!this.open(timestamp)) {
+ if (!this.open()) {
invocation.return_error_literal(
ModalDialogError.GRAB_FAILED,
'Cannot grab pointer and keyboard');
}
const dialog = new InstallExtensionDialog(uuid, info, invocation);
- dialog.open(global.get_current_time());
+ dialog.open();
}
/**
() => (this._initialKeyFocus = null), this);
}
- open(_timestamp) {
+ open() {
if (this.state === State.OPENED || this.state === State.OPENING)
return true;